<!-- 博客编辑页 -->


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客编辑页</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/blog_edit.css">
    <!-- 引入 editor.md 的依赖 -->
    <link rel="stylesheet" href="editor.md-master/css/editormd.css" />
    <script src="editor.md-master/lib/marked.min.js"></script>
    <script src="editor.md-master/lib/prettify.min.js"></script>
    <script src="editor.md-master/editormd.js"></script>
    </head>
<body>
    <!-- 导航栏 -->
    <!-- 导航栏里面包含logo，标题，和一些按钮也就是跳转链接-->
    <!-- 为了实现左右排列，在logo和按钮之间加一个spacer作为占位器 -->
    <div class="nav">
        
        <!-- 放入图片dog.png作为logo -->
        <img src="image/cat.png" alt="">
        <!-- span在行内定义一块区域 -->
        <span class="title">我的博客系统</span>
        <!-- 用来占据中间位置 -->
        <span class="spacer"></span>
        <a href="blog_list.html">主页</a>
        <a href="blog_edit.html">写博客</a>
        <a href="login.html">注销</a>
    </div>

    <!-- 编辑区 -->
    <div class="blog-edit-container">
        <form action="blog" method="post">
            <!-- 标题编辑区 -->
            <div class="title">
                <input type="text" name="title" id="title">
                <input type="submit" value="发布文章" id="submit">
            </div>
            <!-- 内容编辑区 --> 
            <!-- markdown插件html代码 -->
            <div id="editor">  
                <textarea style="display: none;" name="content">##在这里写下一篇博客</textarea>
            </div>
        </form>   
    </div> 
    <script src="js/jquery.min.js"></script>
    <script src="editor.md-master/editormd.min.js"></script>
    <script type="editor.md-master/lib/codemirror/mode/javascript/javascript.js">
        $(function(){
            var editor = editormd("editor",{
                width: "100%",
                height: "550px",
                path:"editor.md-master/lib/"
            });
        });
    </script>
</body>
</html> 